package com.joey.supermarket.model;

/**
 * @author 智刚
 * @data : 2021/8/7 16:04
 * @des ：草莓 13元/斤
 */
public class DiscountStrawberry extends Strawberry{

    @Override
    public String getFruitName() {
        return "折后草莓";
    }

    @Override
    public double getUnitPrice() {
        return (double)13 * 0.8;
    }

    public DiscountStrawberry(int weight) {
        super(weight);
    }
}
